﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using SmartConference.Api.Filter;
using SmartConference.Domain;

namespace SmartConference.Api.Controllers
{
    /// <summary>
    /// Jwt测试
    /// </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    [ApiExplorerSettings(GroupName = "用户管理")]
    public class JwtController : ControllerBase
    {
        private readonly JWTHelper _jwtHelper;

        public JwtController(JWTHelper jwtHelper)
        {
            _jwtHelper = jwtHelper;
        }

        /// <summary>
        /// 测试Token
        /// </summary>
        /// <returns></returns>
        [Authorize]
        [HttpGet]
        public ActionResult<string> GetTest()
        {
            return "Test Authorize";
        }
    }
}
